/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-customer
*
* @File name : CustomerServiceInterface.java
*
* @Author : Administrator
*
* @Date : 2017年4月5日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年4月5日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/

package com.yonyou.gmmc.service.pointactivity.interfaces;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 调用wechatPush的接口
 * 
 * @author liyujiao
 *
 */
@FeignClient(name = "SERVICE-WECHAT-PUSH")
public interface WechatPushInterface {

	/**
	 * 拿TOKEN
	 * 
	 * @author liyujiao
	 * 
	 * @date 2017年6月1日
	 * @return
	 */
	@RequestMapping(value = "/genToken", method = RequestMethod.GET, consumes = "application/json;UTF-8")
	String genToken();

	/**
	 * 推送文字消息
	 * 
	 * @author liyujiao
	 * 
	 * @date 2017年6月1日
	 * @param openid
	 * @return
	 */
	@RequestMapping(value = "/wechat-push/api/v1/sendTextMsg/{openId}/{content}", method = RequestMethod.GET, consumes = "application/json;UTF-8")
	String sendTextMsg(@PathVariable("openId") String openId, @PathVariable("content") String content);
}
